//
//  UserViewController.m
//  Travel_M_Travel
//
//  Created by Sun on 15/4/6.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "UserViewController.h"
#import "UIColor+AddColor.h"

@interface UserViewController ()

@end

@implementation UserViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor colorFromHexCode:@"#cde6c7"];
    
    UILabel *turnLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 84, 80, 30)];
    turnLabel.text = @"反馈内容  :  ";
    turnLabel.font = [UIFont boldSystemFontOfSize:16];
    [self.view addSubview:turnLabel];
    [turnLabel release];
    
    UITextView *concentView = [[UITextView alloc] initWithFrame:CGRectMake(110, 84, 180, 100)];
    concentView.font = [UIFont boldSystemFontOfSize:14];
    [self.view addSubview:concentView];
    [concentView release];
    
    UILabel *contactLabelView = [[UILabel alloc] initWithFrame:CGRectMake(20, 220, 80, 30)];
    contactLabelView.text = @"联系方式  :  ";
    contactLabelView.font = [UIFont boldSystemFontOfSize:16];
    [self.view addSubview:contactLabelView];
    [contactLabelView release];
    
    UITextField *contactTF = [[UITextField alloc] initWithFrame:CGRectMake(110, 220, 180, 30)];
    contactTF.font = [UIFont boldSystemFontOfSize:14];
    contactTF.placeholder = @"QQ/电话/邮箱";
    [self.view addSubview:contactTF];
    [contactTF release];
    
    UIButton *presentButton = [UIButton buttonWithTitle:@"提    交" frame:CGRectMake(120, 300, 80, 30) target:self action:@selector(preButtonAction:)];
    presentButton.backgroundColor = [UIColor colorFromHexCode:@"#e0861a"];
    [self.view addSubview:presentButton];
   
    
}


- (void) preButtonAction:(UIButton *) button
{
    UIAlertView *alter = [[UIAlertView alloc]initWithTitle:@"提示" message:@"提交成功" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
    [alter show];
}
                               
                               
                               
                               

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
